<g:if test="${makeReportOneStep.size() > 0}">
    <meta charset="utf-8">
    <style type="text/css">
    th{
        width: 9em;
    }
    tr,td{
        border: 1px #ADBFCD solid;
    }
    .odd{
        background-color: #EBEBEB;
    }
    </style>
    <table data-toggle="tablefixed" data-width="100%" data-nowrap="true">
        <thead>
        <tr id="t1">
            <th width="50" rowspan="2">NO.</th>
            %{--<g:each in="${tableHeadList}" status="j" var="headInstance">--}%
            %{--<g:if test="${headInstance != 'RN' && headInstance != 'CREATE_TIME'}">--}%
            %{--<th><g:message code="${headInstance}" default="${headInstance}"/></th>--}%
            %{--</g:if>--}%
            %{--</g:each>--}%
            <th rowspan="2" colspan="1">客户要求</th>
            <th colspan="3">已完成发货</th>
            <th colspan="3">未完成发货</th>
            <th rowspan="2">纳期达成率</th>
        </tr>
        <tr>
            <th>提前完成套数</th>
            <th>按期完成套数</th>
            <th>延迟完成套数</th>
            <th>纳期延迟未完成</th>
            <th>纳期内未完成</th>
            <th>订单已完成</th>
        </tr>
        </thead>
        <tbody>
        <g:each in="${makeReportOneStep}" status="i" var="dataInstance">
            <tr>
                <td>${i + 1}</td>
                <g:each in="${tableHeadList}" status="j" var="headInstance">
                %{-- 纳期 --}%
                    <g:if test="${headInstance != 'RN' && headInstance != 'TQWC' && headInstance != 'AQWC' && headInstance != 'WWCN' && headInstance != 'WWCW' && headInstance != 'YC' && headInstance != 'DDYWC' && headInstance != 'DCL'}">
                        <td>${dataInstance["${headInstance}"]}</td>
                    </g:if>
                %{-- 提前完成套数 --}%
                    <g:if test="${headInstance == 'TQWC'}">
                        <td name="TQWC${i}">
                            <g:if test="${i != makeReportOneStep.size() - 1}">
                                <a href="${request.getContextPath()}/MakeReport/makeReport?naqi=<%=dataInstance.NAQI%>&yanchi=提前&startTime=${startTime}&endTime=${endTime}"
                                   data-toggle="navtab" data-id="dialog-normal"
                                   data-options="{id:'oneReportStep', title:'制造报表'}">${dataInstance["${headInstance}"]}</a>
                            </g:if>
                            <g:else>
                                ${dataInstance["${headInstance}"]}
                            </g:else>
                        </td>
                    </g:if>
                %{-- 按期完成 --}%
                    <g:if test="${headInstance == 'AQWC'}">
                        <td name="AQWC${i}">
                            <g:if test="${i != makeReportOneStep.size() - 1}">
                                <a href="${request.getContextPath()}/MakeReport/makeReport?naqi=<%=dataInstance.NAQI%>&yanchi=正常&startTime=${startTime}&endTime=${endTime}"
                                   data-toggle="navtab" data-id="dialog-normal"
                                   data-options="{id:'oneReportStep', title:'制造报表'}">${dataInstance["${headInstance}"]}</a>
                            </g:if>
                            <g:else>
                                ${dataInstance["${headInstance}"]}
                            </g:else>
                        </td>
                    </g:if>
                %{-- 延迟 --}%
                    <g:if test="${headInstance == 'YC'}">
                        <td name="YC${i}">
                            <g:if test="${i != makeReportOneStep.size() - 1}">
                                <a href="${request.getContextPath()}/MakeReport/makeReport?naqi=<%=dataInstance.NAQI%>&yanchi=延迟&startTime=${startTime}&endTime=${endTime}"
                                   data-toggle="navtab" data-id="dialog-normal"
                                   data-options="{id:'oneReportStep', title:'制造报表'}">${dataInstance["${headInstance}"]}</a>
                            </g:if>
                            <g:else>
                                ${dataInstance["${headInstance}"]}
                            </g:else>
                        </td>
                    </g:if>
                %{-- 未完成外 --}%
                    <g:if test="${headInstance == 'WWCW'}">
                        <td name="WWCW${i}">
                            <g:if test="${i != makeReportOneStep.size() - 1}">
                                <a href="${request.getContextPath()}/MakeReport/makeReport?naqi=<%=dataInstance.NAQI%>&yanchi=未发货外&startTime=${startTime}&endTime=${endTime}"
                                   data-toggle="navtab" data-id="dialog-normal"
                                   data-options="{id:'oneReportStep', title:'制造报表'}">${dataInstance["${headInstance}"]}</a>
                            </g:if>
                            <g:else>
                                ${dataInstance["${headInstance}"]}
                            </g:else>
                        </td>
                    </g:if>
                %{-- 未完成内 --}%
                    <g:if test="${headInstance == 'WWCN'}">
                        <td name="WWCN${i}">
                            <g:if test="${i != makeReportOneStep.size() - 1}">
                                <a href="${request.getContextPath()}/MakeReport/makeReport?naqi=<%=dataInstance.NAQI%>&yanchi=未发货内&startTime=${startTime}&endTime=${endTime}"
                                   data-toggle="navtab" data-id="dialog-normal"
                                   data-options="{id:'oneReportStep', title:'制造报表'}">${dataInstance["${headInstance}"]}</a>
                            </g:if>
                            <g:else>
                                ${dataInstance["${headInstance}"]}
                            </g:else>
                        </td>
                    </g:if>
                %{--订单已完成--}%
                    <g:if test="${headInstance == 'DDYWC'}">
                        <td name="DDYWC${i}">
                            <g:if test="${i != makeReportOneStep.size() - 1}">
                                <a href="${request.getContextPath()}/MakeReport/makeReport?naqi=<%=dataInstance.NAQI%>&yanchi=订单已完成&startTime=${startTime}&endTime=${endTime}"
                                   data-toggle="navtab" data-id="dialog-normal"
                                   data-options="{id:'oneReportStep', title:'制造报表'}">${dataInstance["${headInstance}"]}</a>
                            </g:if>
                            <g:else>
                                ${dataInstance["${headInstance}"]}
                            </g:else>
                        </td>
                    </g:if>
                %{-- 达成率 --}%
                    <g:if test="${headInstance == 'DCL'}">
                        <td name="DCL${i}">${dataInstance["${headInstance}"]}</td>
                    </g:if>
                </g:each>
            </tr>
        </g:each>
        </tbody>
    </table>
</g:if>